//
//  ZHBaseAVPlayerHelper.m
//  AVPlayerDemo
//
//  Created by 正合适 on 2017/10/31.
//  Copyright © 2017年 正合适. All rights reserved.
//

#import "ZHBaseAVPlayerHelper.h"

@implementation ZHBaseAVPlayerHelper
#pragma mark - 时间格式转换
+ (NSString *)translateMMSSFromSS:(float)totalTime {
    NSInteger seconds = (NSInteger)totalTime;
    NSString *hour = [NSString stringWithFormat:@"%02ld",seconds/3600];
    NSString *minute = [NSString stringWithFormat:@"%02ld",(seconds%3600)/60];
    NSString *second = [NSString stringWithFormat:@"%02ld",seconds%60];
    NSString *formatTime = [NSString stringWithFormat:@"%@:%@:%@",hour,minute,second];
    return formatTime;
}

@end
